<?php if (!defined('THINK_PATH')) exit();?><div class="user-intro" style="display:none;">
  <dl>
    <dt>
      <?php if(is_array($faceList)): ?><?php $i = 0;?><?php $__LIST__ = $faceList?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$vo): ?><?php ++$i;?><?php $mod = ($i % 2 )?><div id="face_img_<?php echo ($key); ?>" class="face_img" <?php if(($i)  !=  "1"): ?>style="display:none;"<?php endif; ?>><a event-node="face_card" uid="<?php echo ($vo["uid"]); ?>" href="<?php echo ($vo["space_url"]); ?>"><img src="<?php echo ($vo["avatar_big"]); ?>" width="100" height="100"/></a></div><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
    </dt>
    <dd>
      <div id="banner_list" class="find-user-list right">
        <ul>
          <?php if(is_array($faceList)): ?><?php $i = 0;?><?php $__LIST__ = $faceList?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$vo): ?><?php ++$i;?><?php $mod = ($i % 2 )?><li><a <?php if(($i)  ==  "1"): ?>class="current"<?php endif; ?> uid="<?php echo ($key); ?>" href="<?php echo ($vo["space_url"]); ?>"><img width="30" height="30" src="<?php echo ($vo["avatar_small"]); ?>" /></a></li><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
        </ul>
      </div>
      <div id="banner" class="find-user-info">
        <?php if(is_array($faceList)): ?><?php $i = 0;?><?php $__LIST__ = $faceList?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$vo): ?><?php ++$i;?><?php $mod = ($i % 2 )?><div id="face_info_<?php echo ($key); ?>" class="face_info" <?php if(($i)  !=  "1"): ?>style="display:none;"<?php endif; ?>>
          <strong><a href="<?php echo ($vo["space_url"]); ?>"><?php echo ($vo["uname"]); ?></a><?php echo ($vo["group_icon"]); ?></strong>
          <p title="<?php echo ($vo["info"]); ?>" class="mb10"><?php echo (getshort($vo["info"],88,'...')); ?></p>
          <?php if($GLOBALS['ts']['mid'] != $vo['uid']): ?>
          <?php echo W('FollowBtn', array('fid'=>$vo['uid'], 'uname'=>$vo['uname'], 'follow_state'=>$vo['follow_state']));?>
          <?php endif; ?>
        </div><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
      </div>
    </dd>
  </dl>
</div>

<script type="text/javascript">
var t = n = 0, count; 
$(document).ready(function(){ 
  count = $("#banner_list li").length; 

  $('#banner_list').find('a').each(function(i, n) {
    $(this).bind("click", function() {
      var uid = parseInt($(this).attr('uid'));
      $('.face_img').hide();
      $('.face_info').hide();
      $('#face_img_' + uid).show();
      $('#face_info_' + uid).show();
    });
  });

  // 设置轮播
  t = setInterval("showAuto()", 2500); 
  $('#banner').hover(function() {
    clearInterval(t);
  }, function() {
    t = setInterval("showAuto()", 2500);
  });
});
function showAuto() 
{
  var box = $('#tsbox')[0];
  if (typeof box != 'undefined') {
    return false;
  }
  n = (n >= (count - 1)) ? 0 : ++n;
  $('#banner_list').find('a').removeClass("current");
  $("#banner_list").find('a').eq(n).addClass("current");
  $("#banner_list").find('a').eq(n).trigger("click");
};
</script>